<template>
    <el-table :data="list" size="mini">
        <el-table-column label="学习主题" prop="name"></el-table-column>
        <el-table-column label="操作">
            <template slot-scope="{$index}">
                <el-button
                    type="text"
                    @click="$emit('delete', $index)"
                    class="red-color">
                    {{ "移除" }}
                </el-button>
            </template>
        </el-table-column>
    </el-table>
</template>

<script>

export default {
    props: ['list'],
    data() {
        return {};
    },
};
</script>
